/*部分公用组件及零散的组件的ajax请求都在这里*/
import request from './request';
import {weatherUrl, loginUrl} from './interface_configs'
import {ak, city} from "../configs/common_configs";

export const requestWeatherData = ()=>{
  return request({
    method: 'jsonp',
    url: weatherUrl,
    data:{
      location: city,
      output: 'json',
      ak: ak
    }
  })
};

export const login = (data)=>{
  return request({
    url:loginUrl,
    data: data
  })
};
